'use strict';

let debug = require('debug')('rtToi');
let mongoDao = new require('./mongo/RtToi.js')();

let DaoDispatcher = function () {
};
module.exports = new DaoDispatcher();

let theProto = DaoDispatcher.prototype;

/**
 * 添加单个entity add single district
 * @param json
 * @returns {*}
 */
// theProto.addOne = function*(inParams) {
//     let result = yield mongoDao.saveOne(inParams);
//     return result;
// };

theProto.addOne2 = function(inParams) {
    //console.log('DaoDispatcher.theProto.addOne2');
    return mongoDao.saveOne2(inParams);
};

theProto.getByUid = function*(uid) {
    return "TODO";
};
 
